#include "resource.h"
#include <d3d9.h>

namespace gunsmith
{
CResource::CResource(ERESOURCETYPE eType)
{
	m_eResourceType = eType;						// set resource type
	m_pResMngr = CResourceManager::GetInstance();	// get resource manager
	m_pDevice = m_pResMngr->GetDevice();			// get directx device
}

CResource::~CResource()
{
	m_pResMngr->Release();
}

ERESOURCETYPE CResource::GetResourceType() const
{
	return m_eResourceType;
}
};